'use strict';

module.exports = appInfo => {
  const config = {};

  // should change to your own
  config.keys = appInfo.name + '_1489578218182_3450';
  config.view={ defaultViewEngine: 'ejs', mapping: {'.ejs':'ejs'} };
  config.middleware=['auth'];
  config.auth={match:"/api"};
  config.security = {csrf: false,domainWhiteList:['http://127.0.0.1:8080','localhost:8080','http://127.0.0.1:8081','localhost:8081','.callmesoul.cn','callmesoul.cn']};
  config.cors = {allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS'};
  config.sequelize={dialect:'mysql',database:'demo',host:'localhost',port:'3306',username:'root',password:'root'};
  // config.sequelize={dialect:'mysql',database:'app_callmesoul',host:'w.rdc.sae.sina.com.cn',port:'3307',username:'21xom0oyok',password:'wjk4mjxl10m1llzzikmz252mw4ky5441xj0hh01m'};
  return config;
};


// module.exports = {
//     // 加载 errorHandler 中间件
//     middleware: [ 'errorHandler' ],
//     // 只对 /api 前缀的 url 路径生效
//     errorHandler: {
//         match: '/api',
//     },
// };
